package com.air.designmodel.eleven;

/**
 * 咖啡类中实现自己的部分算法
 *
 * @author shent
 */
public class Coffee extends CaffeineBeverage {
    @Override
    void brew() {
        System.out.println("dripping coffee through filter");
    }

    @Override
    void addCondiments() {
        System.out.println("adding sugar and milk");
    }


    //是否使用钩子方法,加调料
    @Override
    boolean customerWantsCondiments() {
        return true;
    }
}
